from django.db import models

# Create your models here.
from mlh.utils.models import BaseModel
from users.models import User


class Share(BaseModel):
    share_title = models.CharField(max_length=64, verbose_name="分享的主题", null=True)
    user = models.ForeignKey(User, verbose_name="分享人", related_name="users")
    share_number = models.IntegerField(verbose_name="分享的次数")
    share_use = models.IntegerField(verbose_name="有用的次数")

    class Meta:
        db_table = "tb_share"
        verbose_name = "分享表"
        verbose_name_plural = verbose_name
